跳到主要内容

CreateDialog

Modal dialog for creating certain item (file, folder, etc.). The user gets the full acess to the functionality but cannot control the layout.

Interface: ICreateDialog.

Example

const createDialogProps = {
title: "Create diagram",
startValue: "New diagram",
visible: true,
isCreateDialog: true,
extension: ".drawio",
onSave: async (e: any, value: string) => {},
onCancel: (e: any) => {},
onClose: (e: any) => {},
}